package com.atguigu.common.constant;

/**
 * @author LYJ
 * @Description 商品的公共变量
 * @date 2021 年 01 月 09 日 13:39
 */
public class ProductConstant {

    //属性类型[0-销售属性，1-基本属性]
    public enum AttrEnum {
        ATTR_TYPE_SALE(0, "销售属性"),
        ATTR_TYPE_BASE(1, "基本属性");

        private int code;
        private String value;

        AttrEnum(int code, String value) {
            this.code = code;
            this.value = value;
        }


        public int getCode() {
            return code;
        }

        public String getValue() {
            return value;
        }
    }

    public enum  StatusEnum {
        SPU_UP(1,"上架"),
        SPU_DOWN(0,"下架");

        private int code;
        private String value;

        StatusEnum(int code, String value) {
            this.code = code;
            this.value = value;
        }

        public int getCode() {
            return code;
        }

        public String getValue() {
            return value;
        }
    }

}
